//
//  LKTestChooseCell.m
//  YLHelper
//
//  Created by she1323 on 2018/5/8.
//  Copyright © 2018年 she1323. All rights reserved.
//

#import "LKTestChooseCell.h"

@interface LKTestChooseCell()
@property (weak, nonatomic) IBOutlet UILabel *answerLabel;


@end

@implementation LKTestChooseCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
-(void)setModel:(LKQuestionAnswerModel *)model{
    _model = model;
    _answerLabel.text = [NSString stringWithFormat:@"%@:%@",_model.answerName,_model.answerContent];
    _chooseImageView.image = [UIImage imageNamed:@"elarningweixuanze"];
    
}
-(void)setDetailModel:(LKQuestionAnswerDetailModel *)detailModel{
    _detailModel = detailModel;
    self.chooseImageView.image = [UIImage imageNamed:@"elarningweixuanze"];
    _answerLabel.text = [NSString stringWithFormat:@"%@:%@",_detailModel.answerName,_detailModel.answerContent];
}

-(void)setMycollectqustStr:(NSString *)mycollectqustStr{
    [_chooseImageView removeFromSuperview];
    [_answerLabel mas_updateConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.contentView.mas_left).offset(16);
        make.centerY.equalTo(self.contentView);
        make.right.equalTo(self.contentView.mas_right).offset(-16);
    }];
    _mycollectqustStr = mycollectqustStr;
    _answerLabel.text = _mycollectqustStr;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
